
Version:=9.8.1
ModuleName:=delegate

Objcet:=$(ModuleName).tgz
ObjectDir:=$(ModuleName)$(Version)
ObjcetSource:=$(ModuleName)$(Version).tar.gz

DependFiles:=
InstaSbinDir:=usr/local/sbin

.PHONY: all clean dist_clean

all:$(Objcet) 

$(Objcet):$(ObjcetSource) DELEGATE_CONF
	tar -xzf $(ObjcetSource) && cp -rf DELEGATE_CONF $(ObjectDir)/src/
	$(MAKE) -C $(ObjectDir)
	mkdir -p $(InstaSbinDir)
	cp $(ObjectDir)/src/delegated $(InstaSbinDir)
	tar -czf $(Objcet) usr

clean:
	rm -rf $(Objcet) usr var etc

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjcetSource) 
	
include ../Makefile.Res
